package com.fat.spzx.common.exception;

import com.fat.spzx.model.vo.common.ResultCodeEnum;
import lombok.Data;

@Data
public class AddSysUserException extends RuntimeException {

    private Integer code;
    private String msg;
    private ResultCodeEnum resultCodeEnum;

    public AddSysUserException(ResultCodeEnum resultCodeEnum) {
        this.code = resultCodeEnum.getCode();
        this.msg = resultCodeEnum.getMessage();
        this.resultCodeEnum = resultCodeEnum;
    }
}
